<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/6/5
 * Time: 17:30
 */

namespace App\Providers;

use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;

class ViewServiceProvider extends ServiceProvider
{
	/**
	 * Register bindings in the container.
	 *
	 * @return void
	 */
	public function boot()
	{
		View::composer(
			'layouts._header', 'App\Http\View\Composers\LayoutsHeaderComposer'
		);

		View::composer(
			'layouts._footer', 'App\Http\View\Composers\LayoutsHeaderComposer'
		);

        View::composer(
            'layouts._footerContact', 'App\Http\View\Composers\LayoutsHeaderComposer'
        );
        View::composer(
            'layouts._footerLoade', 'App\Http\View\Composers\LayoutsHeaderComposer'
        );
        View::composer(
            'layouts._footerModal', 'App\Http\View\Composers\LayoutsHeaderComposer'
        );
        View::composer(
            'layouts._headerElse', 'App\Http\View\Composers\LayoutsHeaderComposer'
        );

        View::composer(
            'layouts.nav', 'App\Http\View\Composers\LayoutsHeaderComposer'
        );

        View::composer(
            'contact.contact', 'App\Http\View\Composers\LayoutsHeaderComposer'
        );
        View::composer(
            'model.modelDetails', 'App\Http\View\Composers\LayoutsHeaderComposer'
        );
        View::composer(
            'model.model', 'App\Http\View\Composers\LayoutsHeaderComposer'
        );
        View::composer(
            'index.index', 'App\Http\View\Composers\LayoutsHeaderComposer'
        );
        View::composer(
            'news.newsList', 'App\Http\View\Composers\LayoutsHeaderComposer'
        );
        View::composer(
            'news.newsDesc', 'App\Http\View\Composers\LayoutsHeaderComposer'
        );
	}

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		//
	}
}
